﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    /// <summary>
    /// 大屏显示生产计划执行车间(一车间、四车间)的情况
    /// </summary>
    public class PB_ProductionOrderFinishByWorkShopDTO
    {
        /// <summary>
        /// 生产计划ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 生产订单名称
        /// </summary>
        public ScreenDisplayValue3DTO POName { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public ScreenDisplayValue3DTO StartDate { get; set; }
        /// <summary>
        /// 完工日期
        /// </summary>
        public ScreenDisplayValue3DTO EndDate { get; set; }
        /// <summary>
        /// 目前进度
        /// </summary>
        public ScreenDisplayProgressDTO CurProgress { get; set; }
        /// <summary>
        /// 整体合格率
        /// </summary>
        public ScreenDisplayDashboardDTO QualifiedRate { get; set; }
        /// <summary>
        /// 统计数据
        /// </summary>
        public ScreenDisplayColorBlockDTO Statistics { get; set; }
        /// <summary>
        /// 按照物料分类的报工列表
        /// </summary>
        public List<BookingDetailByMaterialDTO> BookingByMaterial { get; set; }
    }
    /// <summary>
    /// 按照物料分类的报工列表明细
    /// </summary>
    public class BookingDetailByMaterialDTO
    {
        /// <summary>
        /// 物料
        /// </summary>
        public string mmname { get; set; }
        /// <summary>
        /// 成品码
        /// </summary>
        public string productcode { get; set; }
        /// <summary>
        /// 计划量
        /// </summary>
        public string plannum { get; set; }
        /// <summary>
        /// 报工量
        /// </summary>
        public string producenum { get; set; }
        /// <summary>
        /// 不合格
        /// </summary>
        public string unqualifinum { get; set; }
        /// <summary>
        /// 入库
        /// </summary>
        public string checkin { get; set; }
        /// <summary>
        /// 合格率
        /// </summary>
        public double QualiRate { get; set; }

        /// <summary>
        /// 派工状态
        /// </summary>
        public string State { get; set; }
        /// <summary>
        /// 计划重量
        /// </summary>
        public string PlannedWeight { get; set; }
        /// <summary>
        /// 生产状态
        /// </summary>
        public string ProductionStatus { get; set; }
    }

    public class ProductionPlanWorkShop {
        /// <summary>
        /// 生产计划ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 生产订单名称
        /// </summary>
        public ScreenDisplayValue3DTO POName { get; set; }
        public ScreenDisplayValue3DTO StartDate { get; set; }
        /// <summary>
        /// 完工日期
        /// </summary>
        public ScreenDisplayValue3DTO EndDate { get; set; }
    }



    public class GetPassRate {
        /// <summary>
        /// 目前进度
        /// </summary>
        public ScreenDisplayProgressDTO CurProgress { get; set; }
    }

    /// <summary>
    /// 整体合格率
    /// </summary>
    public class OverallQualificationRate {
        
        public ScreenDisplayDashboardDTO QualifiedRate { get; set; }
    }

    /// <summary>
    /// 获报工列表
    /// </summary>
    public class WorkReportlist {
        public List<BookingDetailByMaterialDTO> BookingByMaterial { get; set; }
    }

    /// <summary>
    /// 获取统计数据
    /// </summary>
    public class Statisticaldata {
        public ScreenDisplayColorBlockDTO Statistics { get; set; }
    }


    public class PollToGetTaskList {
        public string Id { get; set; }
        public string POName { get; set; }

        public int? Index { get; set; }
    }
}
